package com.example.administrator.base.bean;

import com.google.gson.Gson;

public class AllStatusCountxBean {


    /**
     * code : 1
     * allStatusCount : {"countRepairingStatusBike":705,"countFaultBike":7083,"countCorpseStatusBike":87366,"countShutdownBike":3313,"countNormalBike":75855,"countUnrechargeableBike":24220,"countScrapStatusBike":4,"countLowBatteryBike":9406,"countOffLineBike":7783,"countRecallStatusBike":45692}
     * message : 获取区域车辆统计成功
     */

    private int code;
    private AllStatusCountEntity allStatusCount;
    private String message;

    public static AllStatusCountxBean objectFromData(String str) {

        return new Gson().fromJson(str, AllStatusCountxBean.class);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public AllStatusCountEntity getAllStatusCount() {
        return allStatusCount;
    }

    public void setAllStatusCount(AllStatusCountEntity allStatusCount) {
        this.allStatusCount = allStatusCount;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class AllStatusCountEntity {
        /**
         * countRepairingStatusBike : 705
         * countFaultBike : 7083
         * countCorpseStatusBike : 87366
         * countShutdownBike : 3313
         * countNormalBike : 75855
         * countUnrechargeableBike : 24220
         * countScrapStatusBike : 4
         * countLowBatteryBike : 9406
         * countOffLineBike : 7783
         * countRecallStatusBike : 45692
         */

        private int countRepairingStatusBike;
        private int countFaultBike;
        private int countCorpseStatusBike;
        private int countShutdownBike=0;
        private int countNormalBike;
        private int countUnrechargeableBike;
        private int countScrapStatusBike;
        private int countLowBatteryBike;
        private int countOffLineBike;
        private int countRecallStatusBike;

        public static AllStatusCountEntity objectFromData(String str) {

            return new Gson().fromJson(str, AllStatusCountEntity.class);
        }

        public int getCountRepairingStatusBike() {
            return countRepairingStatusBike;
        }

        public void setCountRepairingStatusBike(int countRepairingStatusBike) {
            this.countRepairingStatusBike = countRepairingStatusBike;
        }

        public int getCountFaultBike() {
            return countFaultBike;
        }

        public void setCountFaultBike(int countFaultBike) {
            this.countFaultBike = countFaultBike;
        }

        public int getCountCorpseStatusBike() {
            return countCorpseStatusBike;
        }

        public void setCountCorpseStatusBike(int countCorpseStatusBike) {
            this.countCorpseStatusBike = countCorpseStatusBike;
        }

        public int getCountShutdownBike() {
            return countShutdownBike;
        }

        public void setCountShutdownBike(int countShutdownBike) {
            this.countShutdownBike = countShutdownBike;
        }

        public int getCountNormalBike() {
            return countNormalBike;
        }

        public void setCountNormalBike(int countNormalBike) {
            this.countNormalBike = countNormalBike;
        }

        public int getCountUnrechargeableBike() {
            return countUnrechargeableBike;
        }

        public void setCountUnrechargeableBike(int countUnrechargeableBike) {
            this.countUnrechargeableBike = countUnrechargeableBike;
        }

        public int getCountScrapStatusBike() {
            return countScrapStatusBike;
        }

        public void setCountScrapStatusBike(int countScrapStatusBike) {
            this.countScrapStatusBike = countScrapStatusBike;
        }

        public int getCountLowBatteryBike() {
            return countLowBatteryBike;
        }

        public void setCountLowBatteryBike(int countLowBatteryBike) {
            this.countLowBatteryBike = countLowBatteryBike;
        }

        public int getCountOffLineBike() {
            return countOffLineBike;
        }

        public void setCountOffLineBike(int countOffLineBike) {
            this.countOffLineBike = countOffLineBike;
        }

        public int getCountRecallStatusBike() {
            return countRecallStatusBike;
        }

        public void setCountRecallStatusBike(int countRecallStatusBike) {
            this.countRecallStatusBike = countRecallStatusBike;
        }
    }
}